let platform = ''
// #ifdef  MP-WEIXIN
platform = 'mini'
// #endif
// #ifdef  MP-ALIPAY
platform = 'ali'
// #endif
// #ifdef  MP-BAIDU
platform = 'baidu'
// #endif
// #ifdef  MP-TOUTIAO	
platform = 'toutiao'
// #endif
// #ifdef  H5
// 判断是否为公众号模拟器环境
const isWechat = () => {
	return String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) == "micromessenger";
}
platform = isWechat() ? 'weChat' : 'h5'
// #endif
let t = 'channelApi/',
	api = {
		platform,
		config: t + 'config/config',
		login: t + 'login/login', //获取code
		jm: t + 'login/decrypt',
		xgyh: t + 'login/save-user',
		pay: t + 'pay/pay',
		shopGoodsInfo: t + 'good/get-product-list',
		WxSign: t + 'WxSign',
		WxUpload: t + 'WxUpload',
		layout: t + 'config/get-drag-row', //拖拽数据
		xggwc: t + 'order/save-shop-car',
		wdgwc: t + 'order/get-car-list',
		qkgwc: t + 'order/del-car',
		spxq: t + 'good/get-good-detail',
		bcshdz: t + 'member/save-user-address',
		wdshdz: t + 'member/my-address',
		scshdz: t + 'member/del-user-address',
		xzshdz: t + 'member/receiving-address',
		wmxzsj: t + 'order/store-time',
		wmxd: t + 'order/save-order',
		ddlb: t + 'order/order-list',
		ddsz: t + 'order/order-set',
		wmddqx: t + 'order/cancel-order',
		wmddcd: t + 'order/reminder',
		wmddtk: t + 'order/refund',
		wmddsh: t + 'order/receiving',
		wmddxq: t + 'order/order-info',
		wmmbxx: t + 'config/template-list',
		zjdp: t + 'shop/lately-store',
		zbtdz: t + 'config/coordinate-to-add',
		bzzx: t + 'member/get-helps-list',
		bzxq: t + 'member/get-helps-detail',
		ggxq: t + 'good/get-good-oper',
		ptgg: t + 'config/get-article-list',
		fwjl: t + 'cloud/visit-collect'
	};
export default api
